package edu.cgpi.view;

import java.awt.Color;

import javax.swing.JColorChooser;
import javax.swing.JPanel;

public class PainelSelecaoCor extends JPanel {

	private static final long serialVersionUID = -6476908526261518002L;

	private JColorChooser colorChooser;
	
	public PainelSelecaoCor(){
		GerenciadorUI.getInstance().setPainelSelecaoCor(this);
		inicializar();
	}

	private void inicializar() {
		this.colorChooser = new JColorChooser(Color.BLACK);
		this.colorChooser.setPreviewPanel(new JPanel());
		this.setSize(300, 300);
		this.add(colorChooser);
	}

	public Color getCor() {
		return colorChooser.getColor();
	}
}
